<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
 */

return [
    'default' => [
        'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
        'channel' => env('ASYNC_QUEUE_REDIS', 'jsml'),
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'redis' => [
            'pool' => env('ASYNC_QUEUE_REDIS', 'default'),
        ],
        'concurrent' => [
            'limit' => 1,
        ],
    ],

    //推送消息队列
    'push_msg' => [
        'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
        'channel' => 'msg.jsml',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'redis' => [
            'pool' => 'default',
        ],
        'concurrent' => [
            'limit' => 1,
        ],
    ],

    // 给voicecall用于分发消息用户 //
    'jikeliao' => [
        'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
        'channel' => 'jikeliao',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'redis' => [
            'pool' => 'jikeliao',
        ],
        'concurrent' => [
            'limit' => 1,
        ],
    ],

    'miai' => [
        'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
        'channel' => 'miai',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'redis' => [
            'pool' => 'miai',
        ],
        'concurrent' => [
            'limit' => 1,
        ],
    ],
];
